package com.zhijian.medical.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "常规病例-借还片记录详情")
public class RoutineSampleBrRecordDetail {

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("归还状态 0 未归还 1已归还")
    private Integer state;

    public String getStateStr(){
        if (state != null){
            if (state == 0){
                return "未归还";
            }
            if (state == 1){
                return "已归还";
            }
        }
        return "未归还";
    }

    @ApiModelProperty("借还片记录ID")
    private Long recordId;

    @ApiModelProperty("编号")
    private String number;

    /**
     * 常规病理号
     */
    @ApiModelProperty("常规病理号")
    @TableField(exist = false)
    private String conventionPathologyNumber;

    @ApiModelProperty("0 切片 1 蜡块")
    @TableField(exist = false)
    private Integer type;
}
